/**
 * Generate time : 2011-08-09 16:26:54
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.ca.domain;

import java.util.HashMap;
import java.util.Map;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCA4600 table comment : 生产问题
 */
public class ZMCA4600 extends DaoEPBase {

	private String fdKeyId = " "; /* FD_KEY_ID */
	private String fdProblemTypeId = " "; /* 问题类型主键 */
	private String fdProblemLevelId = " "; /* 问题级别主键 */
	private String fdVirtualDate = " "; /* 调度日期 */
	private String fdCurrentDate = " "; /* 当前日期 */
	private String fdProblemDate = " "; /* 发生日期 */
	private String fdProblemTime = " "; /* 发生时间 */
	private Long fdProblemOrigin = new Long(0); /* 问题来源 */
	private String fdBusinessDepartmentId = " "; /* 责任单位主键 */
	private String fdProblemPlace = " "; /* 发生地点 */
	private Long fdProblemStatus = new Long(0); /* 问题状态 */
	private String fdAuditDepartmentId = " "; /* 核查单位主键 */
	private String fdProblemDescription = " "; /* 问题描述 */
	private String fdSubmitorId = " "; /* 提出人主键 */
	private String fdDealMethod = " "; /* 处理方法 */
	private String fdAuditSuggest = " "; /* 核查意见 */
	private String fdGroupworkreportId = " "; /* 班组作业汇报主键 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("FD_KEY_ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProblemTypeId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("问题类型主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProblemLevelId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("问题级别主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdVirtualDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("调度日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCurrentDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("当前日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProblemDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("发生日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProblemTime");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("发生时间");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProblemOrigin");
		eiColumn.setType("N");
		eiColumn.setScaleLength(0);
		eiColumn.setFieldLength(38);
		eiColumn.setDescName("问题来源");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdBusinessDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("责任单位主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProblemPlace");
		eiColumn.setFieldLength(200);
		eiColumn.setDescName("发生地点");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProblemStatus");
		eiColumn.setType("N");
		eiColumn.setScaleLength(0);
		eiColumn.setFieldLength(38);
		eiColumn.setDescName("问题状态");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdAuditDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("核查单位主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProblemDescription");
		eiColumn.setFieldLength(800);
		eiColumn.setDescName("问题描述");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSubmitorId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("提出人主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDealMethod");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("处理方法");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdAuditSuggest");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("核查意见");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdGroupworkreportId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("班组作业汇报主键");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCA4600() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - FD_KEY_ID
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdProblemTypeId - 问题类型主键
	 * 
	 * @return the fdProblemTypeId
	 */
	public String getFdProblemTypeId() {
		return this.fdProblemTypeId;
	}

	/**
	 * set the fdProblemTypeId - 问题类型主键
	 */
	public void setFdProblemTypeId(String fdProblemTypeId) {
		this.fdProblemTypeId = fdProblemTypeId;
	}

	/**
	 * get the fdProblemLevelId - 问题级别主键
	 * 
	 * @return the fdProblemLevelId
	 */
	public String getFdProblemLevelId() {
		return this.fdProblemLevelId;
	}

	/**
	 * set the fdProblemLevelId - 问题级别主键
	 */
	public void setFdProblemLevelId(String fdProblemLevelId) {
		this.fdProblemLevelId = fdProblemLevelId;
	}

	/**
	 * get the fdVirtualDate - 调度日期
	 * 
	 * @return the fdVirtualDate
	 */
	public String getFdVirtualDate() {
		return this.fdVirtualDate;
	}

	/**
	 * set the fdVirtualDate - 调度日期
	 */
	public void setFdVirtualDate(String fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}

	/**
	 * get the fdCurrentDate - 当前日期
	 * 
	 * @return the fdCurrentDate
	 */
	public String getFdCurrentDate() {
		return this.fdCurrentDate;
	}

	/**
	 * set the fdCurrentDate - 当前日期
	 */
	public void setFdCurrentDate(String fdCurrentDate) {
		this.fdCurrentDate = fdCurrentDate;
	}

	/**
	 * get the fdProblemDate - 发生日期
	 * 
	 * @return the fdProblemDate
	 */
	public String getFdProblemDate() {
		return this.fdProblemDate;
	}

	/**
	 * set the fdProblemDate - 发生日期
	 */
	public void setFdProblemDate(String fdProblemDate) {
		this.fdProblemDate = fdProblemDate;
	}

	/**
	 * get the fdProblemTime - 发生时间
	 * 
	 * @return the fdProblemTime
	 */
	public String getFdProblemTime() {
		return this.fdProblemTime;
	}

	/**
	 * set the fdProblemTime - 发生时间
	 */
	public void setFdProblemTime(String fdProblemTime) {
		this.fdProblemTime = fdProblemTime;
	}

	/**
	 * get the fdProblemOrigin - 问题来源
	 * 
	 * @return the fdProblemOrigin
	 */
	public Long getFdProblemOrigin() {
		return this.fdProblemOrigin;
	}

	/**
	 * set the fdProblemOrigin - 问题来源
	 */
	public void setFdProblemOrigin(Long fdProblemOrigin) {
		this.fdProblemOrigin = fdProblemOrigin;
	}

	/**
	 * get the fdBusinessDepartmentId - 责任单位主键
	 * 
	 * @return the fdBusinessDepartmentId
	 */
	public String getFdBusinessDepartmentId() {
		return this.fdBusinessDepartmentId;
	}

	/**
	 * set the fdBusinessDepartmentId - 责任单位主键
	 */
	public void setFdBusinessDepartmentId(String fdBusinessDepartmentId) {
		this.fdBusinessDepartmentId = fdBusinessDepartmentId;
	}

	/**
	 * get the fdProblemPlace - 发生地点
	 * 
	 * @return the fdProblemPlace
	 */
	public String getFdProblemPlace() {
		return this.fdProblemPlace;
	}

	/**
	 * set the fdProblemPlace - 发生地点
	 */
	public void setFdProblemPlace(String fdProblemPlace) {
		this.fdProblemPlace = fdProblemPlace;
	}

	/**
	 * get the fdProblemStatus - 问题状态
	 * 
	 * @return the fdProblemStatus
	 */
	public Long getFdProblemStatus() {
		return this.fdProblemStatus;
	}

	/**
	 * set the fdProblemStatus - 问题状态
	 */
	public void setFdProblemStatus(Long fdProblemStatus) {
		this.fdProblemStatus = fdProblemStatus;
	}

	/**
	 * get the fdAuditDepartmentId - 核查单位主键
	 * 
	 * @return the fdAuditDepartmentId
	 */
	public String getFdAuditDepartmentId() {
		return this.fdAuditDepartmentId;
	}

	/**
	 * set the fdAuditDepartmentId - 核查单位主键
	 */
	public void setFdAuditDepartmentId(String fdAuditDepartmentId) {
		this.fdAuditDepartmentId = fdAuditDepartmentId;
	}

	/**
	 * get the fdProblemDescription - 问题描述
	 * 
	 * @return the fdProblemDescription
	 */
	public String getFdProblemDescription() {
		return this.fdProblemDescription;
	}

	/**
	 * set the fdProblemDescription - 问题描述
	 */
	public void setFdProblemDescription(String fdProblemDescription) {
		this.fdProblemDescription = fdProblemDescription;
	}

	/**
	 * get the fdSubmitorId - 提出人主键
	 * 
	 * @return the fdSubmitorId
	 */
	public String getFdSubmitorId() {
		return this.fdSubmitorId;
	}

	/**
	 * set the fdSubmitorId - 提出人主键
	 */
	public void setFdSubmitorId(String fdSubmitorId) {
		this.fdSubmitorId = fdSubmitorId;
	}

	/**
	 * get the fdDealMethod - 处理方法
	 * 
	 * @return the fdDealMethod
	 */
	public String getFdDealMethod() {
		return this.fdDealMethod;
	}

	/**
	 * set the fdDealMethod - 处理方法
	 */
	public void setFdDealMethod(String fdDealMethod) {
		this.fdDealMethod = fdDealMethod;
	}

	/**
	 * get the fdAuditSuggest - 核查意见
	 * 
	 * @return the fdAuditSuggest
	 */
	public String getFdAuditSuggest() {
		return this.fdAuditSuggest;
	}

	/**
	 * set the fdAuditSuggest - 核查意见
	 */
	public void setFdAuditSuggest(String fdAuditSuggest) {
		this.fdAuditSuggest = fdAuditSuggest;
	}

	/**
	 * get the fdGroupworkreportId - 班组作业汇报主键
	 * 
	 * @return the fdGroupworkreportId
	 */
	public String getFdGroupworkreportId() {
		return this.fdGroupworkreportId;
	}

	/**
	 * set the fdGroupworkreportId - 班组作业汇报主键
	 */
	public void setFdGroupworkreportId(String fdGroupworkreportId) {
		this.fdGroupworkreportId = fdGroupworkreportId;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdProblemTypeId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemTypeId")), fdProblemTypeId));
		setFdProblemLevelId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemLevelId")), fdProblemLevelId));
		setFdVirtualDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVirtualDate")), fdVirtualDate));
		setFdCurrentDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCurrentDate")), fdCurrentDate));
		setFdProblemDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemDate")), fdProblemDate));
		setFdProblemTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemTime")), fdProblemTime));
		setFdProblemOrigin(NumberUtils.toLong(StringUtils.toString(map.get("fdProblemOrigin")), fdProblemOrigin));
		setFdBusinessDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBusinessDepartmentId")), fdBusinessDepartmentId));
		setFdProblemPlace(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemPlace")), fdProblemPlace));
		setFdProblemStatus(NumberUtils.toLong(StringUtils.toString(map.get("fdProblemStatus")), fdProblemStatus));
		setFdAuditDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAuditDepartmentId")), fdAuditDepartmentId));
		setFdProblemDescription(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemDescription")), fdProblemDescription));
		setFdSubmitorId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSubmitorId")), fdSubmitorId));
		setFdDealMethod(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDealMethod")), fdDealMethod));
		setFdAuditSuggest(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAuditSuggest")), fdAuditSuggest));
		setFdGroupworkreportId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdGroupworkreportId")), fdGroupworkreportId));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdProblemTypeId", StringUtils.toString(fdProblemTypeId, eiMetadata.getMeta("fdProblemTypeId")));
		map.put("fdProblemLevelId", StringUtils.toString(fdProblemLevelId, eiMetadata.getMeta("fdProblemLevelId")));
		map.put("fdVirtualDate", StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));
		map.put("fdCurrentDate", StringUtils.toString(fdCurrentDate, eiMetadata.getMeta("fdCurrentDate")));
		map.put("fdProblemDate", StringUtils.toString(fdProblemDate, eiMetadata.getMeta("fdProblemDate")));
		map.put("fdProblemTime", StringUtils.toString(fdProblemTime, eiMetadata.getMeta("fdProblemTime")));
		map.put("fdProblemOrigin", StringUtils.toString(fdProblemOrigin, eiMetadata.getMeta("fdProblemOrigin")));
		map.put("fdBusinessDepartmentId", StringUtils.toString(fdBusinessDepartmentId, eiMetadata.getMeta("fdBusinessDepartmentId")));
		map.put("fdProblemPlace", StringUtils.toString(fdProblemPlace, eiMetadata.getMeta("fdProblemPlace")));
		map.put("fdProblemStatus", StringUtils.toString(fdProblemStatus, eiMetadata.getMeta("fdProblemStatus")));
		map.put("fdAuditDepartmentId", StringUtils.toString(fdAuditDepartmentId, eiMetadata.getMeta("fdAuditDepartmentId")));
		map.put("fdProblemDescription", StringUtils.toString(fdProblemDescription, eiMetadata.getMeta("fdProblemDescription")));
		map.put("fdSubmitorId", StringUtils.toString(fdSubmitorId, eiMetadata.getMeta("fdSubmitorId")));
		map.put("fdDealMethod", StringUtils.toString(fdDealMethod, eiMetadata.getMeta("fdDealMethod")));
		map.put("fdAuditSuggest", StringUtils.toString(fdAuditSuggest, eiMetadata.getMeta("fdAuditSuggest")));
		map.put("fdGroupworkreportId", StringUtils.toString(fdGroupworkreportId, eiMetadata.getMeta("fdGroupworkreportId")));

		return map;

	}
}